#define _CRT_SECURE_NO_WARNINGS 1
#include "Stack.h"
#include "Queue.h"

int main()
{
	//Stack st;
	//StackInit(&st);
	//StackPush(&st, 1);
	//StackPush(&st, 2);

	//printf("%d ", StackTop(&st));
	//StackPop(&st);

	//StackPush(&st, 3);

	//printf("%d ", StackTop(&st));
	//StackPop(&st);

	//StackPush(&st, 4);
	//StackPush(&st, 5);

	//while (!StackEmpty(&st))
	//{
	//	printf("%d ",StackTop(&st));
	//	StackPop(&st);
	//}

	Queue q;
	QueueInit(&q);
	QueuePush(&q, 1);
	QueuePush(&q, 2);
	QueuePush(&q, 3);
	QueuePush(&q, 4);
	QueuePush(&q, 5);

	while (!QueueEmpty(&q))
	{
		printf("%d ", QueueFront(&q));
		QueuePop(&q);
	}

	return 0;
}